<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{$user.nickname}的个人中心 - {$site_config.site_title}</title>
    <meta name="keywords" content="{$site_config.seo_keyword}"/>
    <meta name="description" content="{$site_config.seo_description}"/>
    <meta name="renderer" content="webkit"/>
    <meta name="format-detection" content="telephone=no"/>
    <link rel="icon" href="/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="__PUBLIC__/plugins/layui/css/layui.css" type="text/css" media="all"/>
    <link rel="stylesheet" href="__HOME__/css/public.css" type="text/css" media="all"/>
    <link rel="stylesheet" href="__PUBLIC__css/font.css">
    <link rel="stylesheet" href="__HOME__/css/person.css" type="text/css" media="all"/>
</head>
<body>
<header>
    <div class="header-important">
        <div class="container layui-clear">
            <a href="/" class="logo">
                <img src="__HOME__/images/logo.png"/>
            </a>
            <img src="__HOME__/images/yxcz2.png" class="logo-right-decation"/>
            <form action="/search/" class="search">
                <input type="text" placeholder="快来搜一搜吧！" name="keyword"/>
                <input type="submit" class="layui-icon" value="&#xe615;"/>
            </form>
        </div>
    </div>
</header>
<article class="content-true">
    <div class="imgbg">
        <div class="txbg"
             style="background-image:url({$user.avatar});"></div>
        <div class="hsbg"></div>
        <div class="container layui-clear">
            <div class="left">
                <img src="{$user.avatar}" onerror="javascript:document.querySelector('.txbg').style.backgroundImage = 'url(__HOME__/images/default_head.png)';this.src='__HOME__/images/default_head.png';" class="person-icon"/>
                <div class="info">
                    <h3 class="nick"><i
                            class="iconfont   icon-nan  "></i>{$user.nickname}</h3>
                    <div class="content layui-clear">
                        <font>投稿次数：{$user.posted_num}</font>
                        <font>通过次数：{$user.passed_num}</font>
                        <font>获得点赞：{$user.praise_num}</font>
                        <font>评论：{$user.comment_num}</font>
                    </div>
                    <div class="small-bk">
                        <b>{$user.designation}</b>
                    </div>
                </div>
            </div>
            <div class="right">
                <a href="javaScript:lxzz('{$user.qq_id}')" class="addqa" target="_blank"><i class="iconfont icon-QQ"></i>联系Ta</a>
                {if $user.promotion_site && $user.promotion_url}
                <a href="{$user.promotion_site}" class="addqun" target="_blank">{$user.promotion_site}</a>
                {else /}
                <a href="/" class="addqun" target="_blank">{$site_config.site_title}</a>
                {/if}
            </div>
        </div>
    </div>
    <div class="p-nav">
        <ul class="layui-clear container">
            <li class="hover" data-div="other"><a> <i class="iconfont icon-zhuye1"></i> 主页 </a></li>
            <li data-div="home"><a> <i class="iconfont icon-icon_m"></i> 投稿 </a></li>
            <li data-div="pl"><a> <i class="iconfont icon-pinglun1"></i> 评论 </a></li>
            <li style="float: right"><a href="/"> <i class="layui-icon layui-icon-return"></i> </i> 返回首页 </a></li>
            {if session('userid')}
            <li style="float: right"><a href="/user/index.html"> <i class="layui-icon layui-icon-user"></i> </i> 个人中心 </a></li>
           {/if}
            <span class="border-bottoms"></span>
        </ul>
    </div>
    <section class="container layui-clear" style="min-height: 500px">
        <div class="other">
            <ul class="my-info">

                <li><h3>Ta的昵称</h3> <span>{$user.nickname}</span></li>
                <li><h3>当前级别</h3>
                    <span class="jp">{$user.designation}</span>
                </li>
                <li><h3>性别</h3> <span>{if $user.sex eq 1}女{else /}男{/if}</span></li>
                <li><h3>Ta的QQ</h3> <span>{$user.qq_id|default='暂未填写'}</span></li>
                <li><h3>已投稿</h3> <span>{$user.posted_num}次</span></li>
                <li><h3>通过</h3> <span>{$user.passed_num}次</span></li>
                <li><h3>评论</h3> <span>{$user.comment_num}次</span></li>
                <li><h3>注册时间</h3> <span>{$user.created_at}</span></li>
                <li><h3>唯一ID</h3> <span class="getuuid" data-uuid="{$user.uuid}">{$user.uuid}</span></li>

            </ul>
        </div>
        <div class="home" hidden>
            <div class="title" style="margin-top:40px;">个人简介</div>
            <div class="person-intro">{$user.description}</div>
            <div class="title">投稿记录</div>
            <div class="loadings layui-icon layui-icon-loading layui-icon layui-anim layui-anim-rotate layui-anim-loop"></div>
            <ul class="tg-list layui-clear"></ul>
            <div id="page" hidden></div>
        </div>
        <div class="pl" hidden>
            <div class="loadings layui-icon layui-icon-loading layui-icon layui-anim layui-anim-rotate layui-anim-loop"></div>
            <ul class="pl-lists"></ul>
        </div>
    </section>
</article>
<footer style="padding:0">
    <a class="backtop iconfont icon-xiangshang"></a>
</footer>
<!--投稿列表-->
<script id="tg-list" type="text/html">
    {{#if(d.length<=0){}}
    <div class="no-data">
        <i class="iconfont icon-zanwushuju"></i>
        <span>该作者还没有投过稿哦</span>
    </div>
    {{#}else{}}
    {{#  layui.each(d, function(index, item){ }}
    {{#if(item.status==1){}}
    {{#var a = ' href="/html/' + item.id + '.html" target="_blank"'}}
    {{#}else{}}
    {{#var a = ' href="javaScript:msg();"'}}
    {{#}}}
    <li>
        <a {{a}}>
            <div class="l-img {{# if(item.status==0){}} wait {{#}else if(item.status==1){ }}  success {{#}else{ }} bad {{# } }} ">
                {{#if(item.status==0){}}
                <img src="{{item.cover_img}}" onerror="this.src='__HOME__/images/no-img1.png';" />
                {{#}else{}}
                <img src="{{item.cover_img}}" onerror="this.src='__HOME__/images/no-img1.png';" />
                {{#}}}
            </div>
            <h3 class="l-title">
                <i>
                    {{# if(item.has_attachment){}} 软件 {{#}else{ }} 文章 {{# } }}
                </i>
                {{item.title}}
            </h3>
        </a>
    </li>
    {{#  }); }}
    {{#}}}
</script>
<!-- 评论列表 -->
<script id="pl-list" type="text/html">
    {{#if(d.pages<=0){}}
    <div class="no-data" style="padding:100px;">
        <i class="iconfont icon-zanwujilu" style="color: #cccccc;"></i>
        <span>您好像还从未评论过哦！</span>
    </div>
    {{#}else{}}
    {{#  layui.each(d, function(index, item){ }}
    <li>
        <div class="info">
            <div class="cons">
                {{item.content}}
            </div>
            <div class="dec layui-clear">
                <div class="left">{{item.created_at}}</div>
                <a class="right" href="/html/{{item.id}}.html" target="_blank">来自：{{item.title}}</a>
            </div>
        </div>
    </li>
    {{#  }); }}
    {{#}}}
</script>
<script src="__PUBLIC__/js/jquery-3.3.1.min.js"></script>
<script src="__PUBLIC__/plugins/layui/layui.js"></script>
<script src="__HOME__/js/public.js"></script>
<!-- person js -->
<script src="__HOME__/js/person.js"></script>
<!--统计代码-->
</html>